﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BrnMall.Sdk.WeiXin.Domain.work
{
    /// <summary>
    /// 部门列表
    /// </summary>
    public class DepartmentListModel
    {
        public int errcode { get; set; }

        public string errmsg { get; set; }

        public List<Department> department { get; set; }
    }

    /// <summary>
    /// 部门信息
    /// </summary>
    public class Department
    {
        /// <summary>
        /// 创建的部门id
        /// </summary>
        public int id { get; set; }
        public string name { get; set; }
        /// <summary>
        /// 父亲部门id。根部门为1
        /// </summary>
        public int parentid { get; set; }
        /// <summary>
        /// 在父部门中的次序值。order值大的排序靠前。值范围是[0, 2^32)
        /// </summary>
        public int order { get; set; }
    }
}